/**
 * Copyright (c) 2018-2099, Chill Zhuang 庄骞 (bladejava@qq.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.restaurant.entity;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 分期支出表实体类
 *
 * @author Blade
 * @since 2025-03-03
 */
@Data
@TableName(value = "restaurant_expenses_installment",autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "分期支出表")
public class ExpensesInstallment extends TenantEntity {

    @Serial
	private static final long serialVersionUID = 1L;

    /**
     * 分类
     */
    @Schema(description = "分类")
	@TableField(value = "classification",typeHandler = JacksonTypeHandler.class)
    private JSONArray classification;
    /**
     * 分类描述
     */
    @Schema(description = "分类描述")
    private String classificationText;
	/**
	 * 支出
	 */
	@Schema(description = "支出")
	private BigDecimal expendAmount;
    /**
     * 月支出
     */
    @Schema(description = "月支出")
    private BigDecimal monthlyExpendAmount;
    /**
     * 日支出
     */
    @Schema(description = "日支出")
    private BigDecimal dailyExpendAmount;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
    /**
     * 附件
     */
    @Schema(description = "附件")
    private String enclosure;

	/**
	 * 开始时间
	 */
	@Schema(description = "开始时间")
	private String beginTime;
	/**
	 * 截止时间
	 */
	@Schema(description = "截止时间")
	private String deadlineTime;
}
